// 在这里面定义所有接口，一个文件管理所有接口，易于维护
import {
  http
} from './http'; // 引入刚刚封装好的http模块，import属于ES6的语法，微信开发者工具必须打开ES6转ES5选项

// 创建任务
function tasksave(postData, doSuccess, doFail, doComplete) {
  http('task/save', 'post', postData, doSuccess, doFail, doComplete)
}
// 任务列表
function tasklist(postData, doSuccess, doFail, doComplete) {
  http('task/list', 'post', postData, doSuccess, doFail, doComplete)
}

// 创建任务
function taskfeekbacksave(postData, doSuccess, doFail, doComplete) {
  http('taskfeekback/save', 'post', postData, doSuccess, doFail, doComplete)
}
// 返回信息列表
function taskfeekbacklist(postData, doSuccess, doFail, doComplete) {
  http('taskfeekback/list', 'post', postData, doSuccess, doFail, doComplete)
}

export default { // 暴露接口
  tasksave,
  tasklist,
  taskfeekbacksave,
  taskfeekbacklist
}